home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: miker3@ix.netcom.com (Mike Rubenstein)
- Newsgroups: comp.lang.c
- Subject: Re: Problem with program
- Date: Thu, 18 Jan 1996 13:24:19 GMT
- Organization: Netcom
- Message-ID: <30fe499a.66295808@nntp.ix.netcom.com>
- References: <4dkr5u$ro7@hasle.sn.no>
- NNTP-Posting-Host: ix-dc8-24.ix.netcom.com
- X-NETCOM-Date: Thu Jan 18 5:24:04 AM PST 1996
- X-Newsreader: Forte Agent .99c/16.141
-
- elvemo@sn.no (Rune Elvemo) wrote:
-
- > Anyone who can figure out what is wrong with this program?
- >
- > I tried to compile it, but my compiler wouldn't.....
- >
- > Ex: It said that the prototype needed a semicolon, but it
- > don't.........
- >
- >
- >
- > /* Loadfile.c - loads a txt file, and shows it
- > **
- > **
- > */
- >
- > #include <stdio.h>
- >
- > struct Text
- > {
- > char *str;
- > struct Text *next;
- > }
-
- ^ Missing semicolon
-
- >
- >
- > enum BOOL { TRUE, FALSE };
- >
- > /* prototype */
- > void PText(struct Text *);
-
- [remainder of original deleted]
-
- Either the message is poorly worded or you are misreading it. The
- missing semicolon is after the definition of struct Text, not in the
- prototype.
-
- Michael M Rubenstein
-